n = input("请输入英文句子：")
words = n.split()
count={}
for word  in words:
    if word in count:
        count[word]+=1
    else:
        count[word]=1
for x,y in count.items():
    print(x,y)